package com.xd.user.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xd.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Exrick
 */
@Data
@Entity
@Table(name = "xd_role_department")
@TableName("xd_role_department")
@org.hibernate.annotations.Table(appliesTo = "xd_role_department",comment = "权限")
@ApiModel(value = "角色部门")
public class RoleDepartment extends BaseModel<RoleDepartment> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色id")
    @Column( nullable = false, columnDefinition = "varchar(255) default '' comment '角色id'")
    private String roleId;

    @ApiModelProperty(value = "部门id")
    @Column( nullable = false, columnDefinition = "varchar(255) default '' comment '部门id'")
    private String departmentId;
}
